package com.pingan.haofang.searchcloud.indexdatasource.service;

import com.pingan.haofang.searchcloud.common.dto.OperationResult;
import com.pingan.haofang.searchcloud.index.domain.Index;
import com.pingan.haofang.searchcloud.index.dto.IndexBuildProgressDTO;
import com.pingan.haofang.searchcloud.indexdatasource.domain.IndexDatasource;
import com.pingan.haofang.searchcloud.indexdatasource.dto.IndexDatasourceScheduleImportDTO;
import com.pingan.haofang.searchcloud.user.domain.SearchProject;

/**
 * 索引构建调度Service接口
 *
 * @author baojie371
 * @date 17/5/15
 * @since 1.0.0
 */
public interface IndexDatasourceScheduleService {

    OperationResult importDatasource(SearchProject searchProject, Index index,
                                     IndexDatasource indexDatasource, IndexBuildProgressDTO dto);

    IndexBuildProgressDTO updateProgress(IndexDatasourceScheduleImportDTO dto, SearchProject searchProject, Index index,
                                         IndexDatasource indexDatasource);
}
